﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Admin.CYT369.Com.WebBase;
using TermsService = user.admin.cyt369.com.services.Services.TermsService;

namespace user.admin.cyt369.com.Areas.UserAdmin.Controllers
{
    [Area(user.admin.cyt369.com.Areas.UserAdmin.Models.PlugName.Name)]
    public partial class TermsController : Admin.CYT369.Com.WebBase.AuthorizeController
    {
        public IActionResult TermsIndex()
        {
            return View();
        }

        public IActionResult _EditTermsDlg()
        {
            int? id = Request.Query.GetInteger("ID");
            user.admin.cyt369.com.services.Models.Terms terms = null;
            if (id.HasValue) {
                terms = TermsService.Instance.GetTermsByID(id.Value);
            }

            return View(terms);
        }


        public IActionResult TermsTypeIndex()
        {
            return View();
        }

        public IActionResult _EditTermsTypeDlg()
        {
            return View();
        }

    }
}